// pages/teacher/component/qwcode/qwcode.js
import
drawQrcode
from '../../../../utils/weapp.qrcode.js'

// console.log(drawQrcode);
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    banjiId: String
    

  },
  observers: {
    banjiId(value) {
      if (value === undefined) return
      console.log(value);
      drawQrcode({
        _this: this,
        width: 200,
        height: 200,
        canvasId: 'myQrcode',
        text: value,
      })


    },

  },
  lifetimes:{
    attached(){

    }

  },
  /**
   * 组件的初始数据
   */
  data: {

  },


  /**
   * 组件的方法列表
   */
  methods: {



  }
})